// To change this License template, choose Tools / Templates
// and edit Licenses / FanDefaultLicense.txt
//
// History:
//   01.02.2011 JSTAUDEMEYER Creation
//

**
** BdbUtil
**
class BdbUtil
{
    
    static Void applyMapToJavaObject (Str:Obj map, Obj obj) {
          map.each |value,key| {
            applyToJavaObject(key,value,obj)
          }
    }
    
    static Void applyToJavaObject (Str key, Obj value, Obj obj) {
         setter := "set"+key.getRange(0..0).upper+key.getRange(1..-1)
         obj.trap(setter,[value])        
    }
}